package com.mszlu.blog.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mszlu.blog.dao.pojo.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Package: com.mszlu.blog.dao.mapper
 * @ClassName: CommentMapper
 * @Author: 陈威
 * @CreateTime: 2021/9/2 16:08
 * @Description:
 */
public interface CommentMapper extends BaseMapper<Comment> {

    IPage<Comment> findAllComment(Page<Comment> page, @Param("content")String content, @Param("nickName")String nickName);

    List<Comment> selectListAll(@Param("id") Long id, @Param("level") Integer level);
}